package com.team.book.controller;

import com.team.book.entity.EbookEntry;
import com.team.book.service.impl.EbookServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class EbookController {
    @Autowired
    public EbookServiceImpl ebookService;
    @RequestMapping("/getAllBook")
    public List<EbookEntry> getAllEbook(){
       List<EbookEntry>list=ebookService.getAllEbook();
        return list;
    }

}
